<!doctype html>


<html>
<head>
  <link rel="shortcut icon" href="static/images/favicon.ico" type="image/x-icon">
  <title>IeCorsXhrAdapter (Closure Library API Documentation - JavaScript)</title>
  <link rel="stylesheet" href="static/css/base.css">
  <link rel="stylesheet" href="static/css/doc.css">
  <link rel="stylesheet" href="static/css/sidetree.css">
  <link rel="stylesheet" href="static/css/prettify.css">

  <script>
     var _staticFilePath = "static/";
     var _typeTreeName = "goog";
     var _fileTreeName = "Source";
  </script>

  <script src="static/js/doc.js">
  </script>

  <script type="text/javascript" src="//www.google.com/jsapi"></script>
  <script type="text/javascript">
     google.load("visualization", "1", {packages:["orgchart"]});
     var _loadingVisualizations = true;
  </script>

  <meta charset="utf8">
</head>

<body onload="grokdoc.onLoad();">

<div id="header">
  <div class="g-section g-tpl-50-50 g-split">
    <div class="g-unit g-first">
      <a id="logo" href="index.html">Closure Library API Documentation</a>
    </div>

    <div class="g-unit">
      <div class="g-c">
        <strong>Go to class or file:</strong>
        <input type="text" id="ac">
      </div>
    </div>
  </div>
</div>





<div class="colmask rightmenu">
<div class="colleft">
    <div class="col1">
      <!-- Column 1 start -->

<div id="title">
        <span class="fn">net.IeCorsXhrAdapter</span>
        <span>Extends</span>
        <span class="fn-name">
          
        </span>
</div>

<div class="g-section g-tpl-75-25">
  <div class="g-unit g-first" id="description">
    An adapter around Internet Explorer's XDomainRequest object that makes it
look like a standard XMLHttpRequest. This can be used instead of
XMLHttpRequest to support CORS.


  </div>


        <div class="g-unit" id="useful-links">
          <div class="title">Useful links</div>
          <ol>
            <li><a href="local_closure_goog_net_corsxmlhttpfactory.js.source.html"><span class='source-code-link'>Source Code</span></a></li>
            <li><a href="http://code.google.com/p/closure-library/source/browse/local/closure/goog/net/corsxmlhttpfactory.js">Git</a></li>
          </ol>
        </div>
</div>






<h2 class="g-first">Inheritance</h2>
<div class='gviz-org-chart-container goog-inline-block'>
<table class='gviz-org-chart' style='display:none'>
  <tr><td>goog.net.IeCorsXhrAdapter</td><td></td></tr>
</table>
</div>
<div class='gviz-org-chart-container goog-inline-block'>
<table class='gviz-org-chart' style='display:none'>
</table>
</div>




  <h2>Constructor</h2>
      <div class="fn-constructor">
    goog.net.IeCorsXhrAdapter(<span></span>)
  </div>



<h2>Instance Methods</h2>


  <div class="legend">
        <span class="key publickey"></span><span>Public</span>
        <span class="key protectedkey"></span><span>Protected</span>
        <span class="key privatekey"></span><span>Private</span>
  </div>







<div>
       <div class="desc">
         Defined in
         <span class="fn-name">
            <a href="class_goog_net_IeCorsXhrAdapter.html">
              goog.net.IeCorsXhrAdapter
            </a>
         </span>
       </div>






<div class="section">
  <table class="horiz-rule">


     <tr class="even entry public">
       <td class="access"></td>






  <td>
    <a name="goog.net.IeCorsXhrAdapter.prototype.abort"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryName">abort<span class="args">()</span>
        </span>
      </div>


     <div class="entryOverview">
       <span class='nodesc'>No description.</span>
     </div>

   
  </td>


  <td class="view-code">
     <a href="local_closure_goog_net_corsxmlhttpfactory.js.source.html#line168">code &raquo;</a>
  </td>
     </tr>


     <tr class="odd entry public">
       <td class="access"></td>






  <td>
    <a name="goog.net.IeCorsXhrAdapter.prototype.getAllResponseHeaders"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryName">getAllResponseHeaders<span class="args">()</span>
        </span>
        &#8658; <span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/String">string</a></span>
      </div>


     <div class="entryOverview">
       Returns the response headers from the server. This implemntation only returns
the 'content-type' header.

     </div>


    <! -- Method details -->
    <div class="entryDetails">

   
      <div class="detailsSection">
        <b>Returns:</b>&nbsp;<span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/String">string</a></span>&nbsp;
            The headers returned from the server.
      </div>
  
    </div>
   
  </td>


  <td class="view-code">
     <a href="local_closure_goog_net_corsxmlhttpfactory.js.source.html#line270">code &raquo;</a>
  </td>
     </tr>


     <tr class="even entry public">
       <td class="access"></td>






  <td>
    <a name="goog.net.IeCorsXhrAdapter.prototype.getResponseHeader"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryName">getResponseHeader<span class="args">(<span class="arg">key</span>)</span>
        </span>
        &#8658; <span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/String">string</a></span>
      </div>


     <div class="entryOverview">
       Returns the value of the response header identified by key. This
implementation only supports the 'content-type' header.

     </div>


    <! -- Method details -->
    <div class="entryDetails">

      <div class="detailsSection">
        <b>Arguments: </b>






<table class="horiz-rule">
     
   <tr class="even">
     <td>
        <span class="entryName">key</span>
        : <span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/String">string</a></span>
        <div class="entryOverview">The request header to fetch. If this parameter is set to
    'content-type' (case-insensitive), this function returns the value of
    the 'content-type' request header. If this parameter is set to any other
    value, this function always returns an empty string.</div>
     </td>
   </tr>
  </table>
      </div>
   
      <div class="detailsSection">
        <b>Returns:</b>&nbsp;<span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/String">string</a></span>&nbsp;
            The value of the response header, or an empty string if key
    is not 'content-type' (case-insensitive).
      </div>
  
    </div>
   
  </td>


  <td class="view-code">
     <a href="local_closure_goog_net_corsxmlhttpfactory.js.source.html#line196">code &raquo;</a>
  </td>
     </tr>


     <tr class="odd entry private">
       <td class="access"></td>






  <td>
    <a name="goog.net.IeCorsXhrAdapter.prototype.handleError_"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryName">handleError_<span class="args">()</span>
        </span>
      </div>


     <div class="entryOverview">
       Handles a request that has failed to load.

     </div>

   
  </td>


  <td class="view-code">
     <a href="local_closure_goog_net_corsxmlhttpfactory.js.source.html#line220">code &raquo;</a>
  </td>
     </tr>


     <tr class="even entry private">
       <td class="access"></td>






  <td>
    <a name="goog.net.IeCorsXhrAdapter.prototype.handleLoad_"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryName">handleLoad_<span class="args">()</span>
        </span>
      </div>


     <div class="entryOverview">
       Handles a request that has fully loaded successfully.

     </div>

   
  </td>


  <td class="view-code">
     <a href="local_closure_goog_net_corsxmlhttpfactory.js.source.html#line208">code &raquo;</a>
  </td>
     </tr>


     <tr class="odd entry private">
       <td class="access"></td>






  <td>
    <a name="goog.net.IeCorsXhrAdapter.prototype.handleProgress_"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryName">handleProgress_<span class="args">()</span>
        </span>
      </div>


     <div class="entryOverview">
       Handles a request that is in the process of loading.

     </div>

   
  </td>


  <td class="view-code">
     <a href="local_closure_goog_net_corsxmlhttpfactory.js.source.html#line242">code &raquo;</a>
  </td>
     </tr>


     <tr class="even entry private">
       <td class="access"></td>






  <td>
    <a name="goog.net.IeCorsXhrAdapter.prototype.handleTimeout_"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryName">handleTimeout_<span class="args">()</span>
        </span>
      </div>


     <div class="entryOverview">
       Handles a request that timed out.

     </div>

   
  </td>


  <td class="view-code">
     <a href="local_closure_goog_net_corsxmlhttpfactory.js.source.html#line233">code &raquo;</a>
  </td>
     </tr>


     <tr class="odd entry public">
       <td class="access"></td>






  <td>
    <a name="goog.net.IeCorsXhrAdapter.prototype.open"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryName">open<span class="args">(<span class="arg">method</span>,&nbsp;<span class="arg">url</span>,&nbsp;<span class="arg">opt_async</span>)</span>
        </span>
      </div>


     <div class="entryOverview">
       Opens a connection to the provided URL.

     </div>


    <! -- Method details -->
    <div class="entryDetails">

      <div class="detailsSection">
        <b>Arguments: </b>






<table class="horiz-rule">
     
   <tr class="even">
     <td>
        <span class="entryName">method</span>
        : <span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/String">string</a></span>
        <div class="entryOverview">The HTTP method to use. Valid methods include GET and
    POST.</div>
     </td>
   </tr>
     
   <tr class="odd">
     <td>
        <span class="entryName">url</span>
        : <span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/String">string</a></span>
        <div class="entryOverview">The URL to contact. The authority of this URL must match
    the authority of the current page's URL (e.g. http or https).</div>
     </td>
   </tr>
     
   <tr class="even">
     <td>
        <span class="entryName">opt_async</span>
        : <span>?</span><span class="type">boolean=</span>
        <div class="entryOverview">Whether the request is asynchronous, defaulting
    to true. XDomainRequest does not support syncronous requests, so setting
    it to false will actually raise an exception.</div>
     </td>
   </tr>
  </table>
      </div>
   
  
    </div>
   
  </td>


  <td class="view-code">
     <a href="local_closure_goog_net_corsxmlhttpfactory.js.source.html#line136">code &raquo;</a>
  </td>
     </tr>


     <tr class="even entry public">
       <td class="access"></td>






  <td>
    <a name="goog.net.IeCorsXhrAdapter.prototype.send"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryName">send<span class="args">(<span class="arg">opt_content</span>)</span>
        </span>
      </div>


     <div class="entryOverview">
       Sends the request to the remote server. Before calling this function, always
call <code> open</code>.

     </div>


    <! -- Method details -->
    <div class="entryDetails">

      <div class="detailsSection">
        <b>Arguments: </b>






<table class="horiz-rule">
     
   <tr class="even">
     <td>
        <span class="entryName">opt_content</span>
        : (<span class="type">ArrayBuffer</span><span>&nbsp;|&nbsp;</span><span class="type">ArrayBufferView</span><span>&nbsp;|&nbsp;</span><span class="type">Blob</span><span>&nbsp;|&nbsp;</span><span class="type"><a href="https://developer.mozilla.org/en/DOM/document">Document</a></span><span>&nbsp;|&nbsp;</span><span class="type">FormData</span><span>&nbsp;|&nbsp;</span><span class="type">null</span><span>&nbsp;|&nbsp;</span><span class="type">string)=</span>
        <div class="entryOverview">The content to send as POSTDATA, if any. Only string data is
    supported by this implementation.</div>
     </td>
   </tr>
  </table>
      </div>
   
  
    </div>
   
  </td>


  <td class="view-code">
     <a href="local_closure_goog_net_corsxmlhttpfactory.js.source.html#line152">code &raquo;</a>
  </td>
     </tr>


     <tr class="odd entry private">
       <td class="access"></td>






  <td>
    <a name="goog.net.IeCorsXhrAdapter.prototype.setReadyState_"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryName">setReadyState_<span class="args">(<span class="arg">readyState</span>)</span>
        </span>
      </div>


     <div class="entryOverview">
       Sets this XHR's ready state and fires the onreadystatechange listener (if one
is set).

     </div>


    <! -- Method details -->
    <div class="entryDetails">

      <div class="detailsSection">
        <b>Arguments: </b>






<table class="horiz-rule">
     
   <tr class="even">
     <td>
        <span class="entryName">readyState</span>
        : <span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Number">number</a></span>
        <div class="entryOverview">The new ready state.</div>
     </td>
   </tr>
  </table>
      </div>
   
  
    </div>
   
  </td>


  <td class="view-code">
     <a href="local_closure_goog_net_corsxmlhttpfactory.js.source.html#line256">code &raquo;</a>
  </td>
     </tr>


     <tr class="even entry public">
       <td class="access"></td>






  <td>
    <a name="goog.net.IeCorsXhrAdapter.prototype.setRequestHeader"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryName">setRequestHeader<span class="args">(<span class="arg">key</span>,&nbsp;<span class="arg">value</span>)</span>
        </span>
      </div>


     <div class="entryOverview">
       Sets a request header to send to the remote server. Because this
implementation does not support request headers, this function does nothing.

     </div>


    <! -- Method details -->
    <div class="entryDetails">

      <div class="detailsSection">
        <b>Arguments: </b>






<table class="horiz-rule">
     
   <tr class="even">
     <td>
        <span class="entryName">key</span>
        : <span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/String">string</a></span>
        <div class="entryOverview">The name of the HTTP header to set. Ignored.</div>
     </td>
   </tr>
     
   <tr class="odd">
     <td>
        <span class="entryName">value</span>
        : <span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/String">string</a></span>
        <div class="entryOverview">The value to set for the HTTP header. Ignored.</div>
     </td>
   </tr>
  </table>
      </div>
   
  
    </div>
   
  </td>


  <td class="view-code">
     <a href="local_closure_goog_net_corsxmlhttpfactory.js.source.html#line180">code &raquo;</a>
  </td>
     </tr>


  </table>
</div>
</div>




<h2>Instance Properties</h2>







<div>
       <div class="desc">
         Defined in
         <span class="fn-name">
            <a href="class_goog_net_IeCorsXhrAdapter.html">
              goog.net.IeCorsXhrAdapter
            </a>
         </span>
       </div>






<div class="section">
  <table class="horiz-rule">


     <tr class="even entry public">
       <td class="access"></td>





  <a name="goog.net.IeCorsXhrAdapter.prototype.onreadystatechange"></a>

  <td>


     <div class="arg">
        <img align="left" src="static/images/blank.gif">

        <span class="entryName">onreadystatechange</span>
        : 
     </div>


     <div class="entryOverview">
       The simulated ready state change callback function.

     </div>

  </td>


  <td class="view-code">
     <a href="local_closure_goog_net_corsxmlhttpfactory.js.source.html#line98">Code &raquo;</a>
  </td>
     </tr>


     <tr class="odd entry public">
       <td class="access"></td>





  <a name="goog.net.IeCorsXhrAdapter.prototype.readyState"></a>

  <td>


     <div class="arg">
        <img align="left" src="static/images/blank.gif">

        <span class="entryName">readyState</span>
        : 
     </div>


     <div class="entryOverview">
       The simulated ready state.

     </div>

  </td>


  <td class="view-code">
     <a href="local_closure_goog_net_corsxmlhttpfactory.js.source.html#line92">Code &raquo;</a>
  </td>
     </tr>


     <tr class="even entry public">
       <td class="access"></td>





  <a name="goog.net.IeCorsXhrAdapter.prototype.responseText"></a>

  <td>


     <div class="arg">
        <img align="left" src="static/images/blank.gif">

        <span class="entryName">responseText</span>
        : 
     </div>


     <div class="entryOverview">
       The simulated response text parameter.

     </div>

  </td>


  <td class="view-code">
     <a href="local_closure_goog_net_corsxmlhttpfactory.js.source.html#line104">Code &raquo;</a>
  </td>
     </tr>


     <tr class="odd entry public">
       <td class="access"></td>





  <a name="goog.net.IeCorsXhrAdapter.prototype.responseXML"></a>

  <td>


     <div class="arg">
        <img align="left" src="static/images/blank.gif">

        <span class="entryName">responseXML</span>
        : 
     </div>


     <div class="entryOverview">
       <span class='nodesc'>No description.</span>
     </div>

  </td>


  <td class="view-code">
     <a href="local_closure_goog_net_corsxmlhttpfactory.js.source.html#line113">Code &raquo;</a>
  </td>
     </tr>


     <tr class="even entry public">
       <td class="access"></td>





  <a name="goog.net.IeCorsXhrAdapter.prototype.status"></a>

  <td>


     <div class="arg">
        <img align="left" src="static/images/blank.gif">

        <span class="entryName">status</span>
        : 
     </div>


     <div class="entryOverview">
       The simulated status code

     </div>

  </td>


  <td class="view-code">
     <a href="local_closure_goog_net_corsxmlhttpfactory.js.source.html#line110">Code &raquo;</a>
  </td>
     </tr>


     <tr class="odd entry public">
       <td class="access"></td>





  <a name="goog.net.IeCorsXhrAdapter.prototype.statusText"></a>

  <td>


     <div class="arg">
        <img align="left" src="static/images/blank.gif">

        <span class="entryName">statusText</span>
        : 
     </div>


     <div class="entryOverview">
       <span class='nodesc'>No description.</span>
     </div>

  </td>


  <td class="view-code">
     <a href="local_closure_goog_net_corsxmlhttpfactory.js.source.html#line116">Code &raquo;</a>
  </td>
     </tr>


     <tr class="even entry private">
       <td class="access"></td>





  <a name="goog.net.IeCorsXhrAdapter.prototype.xdr_"></a>

  <td>


     <div class="arg">
        <img align="left" src="static/images/blank.gif">

        <span class="entryName">xdr_</span>
        : 
     </div>


     <div class="entryOverview">
       The underlying XDomainRequest used to make the HTTP request.

     </div>

  </td>


  <td class="view-code">
     <a href="local_closure_goog_net_corsxmlhttpfactory.js.source.html#line86">Code &raquo;</a>
  </td>
     </tr>


  </table>
</div>
</div>










<div class="section">
  <table class="horiz-rule">


  </table>
</div>









<div class="section">
  <table class="horiz-rule">


  </table>
</div>









<div class="section">
  <table class="horiz-rule">


  </table>
</div>
      <!-- Column 1 end -->
    </div>

        <div class="col2">
          <!-- Column 2 start -->
          <div class="col2-c">
            <h2 id="ref-head">Package net</h2>
            <div id="localView"></div>
          </div>

          <div class="col2-c">
            <h2 id="ref-head">Package Reference</h2>
            <div id="sideTypeIndex" rootPath="" current="net.IeCorsXhrAdapter"></div>
          </div>
          <!-- Column 2 end -->
        </div>
</div>
</div>

</body>
</html>
